package com.example.homemodule.model;

import com.example.homemodule.HomeUrl;
import com.example.homemodule.model.bean.DoctorHealthBean;
import com.example.homemodule.model.bean.ThumbsUpBean;
import com.yilijk.base.base.BaseModel;
import com.yilijk.base.network.RequestParams;
import com.yilijk.base.network.https.HttpCallBack;
import com.yilijk.base.network.https.HttpUtils;

/**
 * Created by SHICHENG
 * <p>
 * Time on
 */
public class DoctorHealthModel extends BaseModel {

    String articleDetail = "/vbp-patient/patient/healthNumberActicle/articleDetail";
    public void articleDetail(int id, HttpCallBack<DoctorHealthBean> callBack){
        RequestParams params = new RequestParams();
        params.put("healthNumberArticleId",id);
        HttpUtils.get(articleDetail,params,callBack);
    }
    public void thumbsUp(int id,int thumbs,HttpCallBack<ThumbsUpBean> callBack){
        RequestParams params = new RequestParams();
        params.put("healthNumberArticleId",id);
        params.put("count",thumbs);
        HttpUtils.get(HomeUrl.thumbsUp,params,callBack);
    }
    public void thumbsdown(int id,HttpCallBack<ThumbsUpBean> callBack){
        RequestParams params = new RequestParams();
        params.put("healthNumberArticleId",id);
        HttpUtils.get(HomeUrl.thumbsdown,params,callBack);
    }
}
